import request from './request.js'

const company = {
  //商户端_我的企业_获取到企业信息
  getCompanyInfo(data = {}) {
    return request.post('/bussiness/Company/GetCompanyInfo', data)
  },
  //商户端_我的企业_获取超管成员
  getUserAdminList(data = {}) {
	  return request.post('/bussiness/Company/GetUserAdminList', data)
  },
  //商户端_我的企业_保存信息
  updateCompanyInfo(data = {}) {
	  return request.post('/bussiness/Company/UpdateCompanyInfo', data)
  },
  //商户端_我的企业_个人信息
  getCompanyUserInfo(data = {}) {
	  return request.post('/bussiness/Company/GetCompanyUserInfo', data)
  },
  //商户端_我的企业_保存个人信息
  updateCompanyUserInfo(data = {}) {
	  return request.post('/bussiness/Company/UpdateCompanyUserInfo', data)
  },
  //商户端_我的企业_离职/移除员工
  removeUser(data = {}) {
	  return request.post('/bussiness/Company/RemoveUser', data)
  },
  //商户端_我的企业_转移超管
  transferSuperAdmin(data = {}) {
	  return request.post('/api/business/core/Account/ChangeStoreAdmin', data)
  },
  // transferSuperAdmin(data = {}) {
	 //  return request.post('/bussiness/Company/TransferSuperAdmin', data)
  // },
  //商户端_我的企业_成员列表
  getCompanyMemberList(data = {}) {
	  return request.post('/bussiness/Company/GetCompanyMemberList', data)
  },
  //商户端_我的企业_待审核列表
  getExamineUserList(data = {}) {
	  return request.post('/bussiness/Company/GetExamineUserList', data)
  },
  //商户端_我的企业_同意审核
  updateExamineUserAgree(data = {}) {
	  return request.put('/bussiness/Company/UpdateExamineUserAgree', data)
  },
  //商户端_我的企业_拒绝审核
  updateExamineUserRefuse(data = {}) {
	  return request.put('/bussiness/Company/UpdateExamineUserRefuse', data)
  },
  //商户端_我的企业_邀请用户
  DoInviteUser(data = {}) {
	  return request.post('/business/Account/InviteAccountToCompany', data)
  },
  //商户端_我的企业_被邀请用户需先注册
  checkUserIsRegister(data = {}) {
	  return request.post('/bussiness/Company/CheckUserIsRegister', data)
  },
  //店铺照片
  updateStoreImg(data = {}) {
	  return request.post('/business/Store/UpdateStoreImg', data)
  },
  //店铺照片详情
  getStoreImgDetail(data = {}) {
	  return request.post('/business/Store/GetStoreImgDetail', data)
  },
  //收获地址数量
  getReceiverAddressCount(data = {}) {
	  return request.post('/api/common/core/ReceiverAddress/GetReceiverAddressCount', data)
  },
  // 审核成员同意
  UpdateExamineUserAgreeSMS(data = {}) {
	  return request.post('/business/Account/UpdateExamineUserAgreeSMS', data)
  },
  // 审核成员拒绝
  UpdateExamineUserRefuseSNS(data = {}) {
	  return request.post('/business/Account/UpdateExamineUserRefuseSNS', data)
  },
  // 创建成员
  CreatCompanyAgainAsync(data = {}) {
	  return request.post('/bussiness/Company/CreatCompanyAgainAsync', data)
  },
}

export default company
